package com.jiada.shiro.test.controller;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class CommonController {
	
	@RequiresPermissions("user")
	@RequestMapping("/index")
	public String index(){
		return "index";
	}
	
	@RequestMapping("/page/403")
	public String error403(){
		return "page/403";
	}
	
	@RequestMapping("/page/404")
	public String error404(){
		return "page/404";
	}
	
	@RequestMapping("/page/401")
	public String error401(){
		return "page/401";
	}
}
